Skip to main content

mergGKLoadScores

Type​

command

Summary​

Get a leaderboard of scores

Syntax​

mergGKLoadScores <pCategory>, [<pTimeScope>], [<pPlayerScope>], [<pFrom>], [<pTo>], [<pPlayerIDs>]

Description​

Use this command to create a custom leaderboard within your app rather than use the Game Center modal. You could for example, use the list of player IDs from mergGKFriends to create a friends only list.

Parameters​

NameTypeDescription

pCategory

The leaderboard ID for the leaderboard.

pTimeScope

(optional with "all time" default) The time scope of the request. One of:

  • today
  • week
  • all time

pPlayerScope

(optional with "global" default) The player scope of the request. One of:

  • today
  • week
  • all time

pFrom

(optional with 1 default) The first score in the range to return.

pTo

(optional with 10 default) The last score in the range to return.

pPlayerIDs

(optional with "" default) A return separated list of player id's if you would like the scores reported on only those players.

Compatibility and Support​

Introduced

LiveCode 8.0

OS

ios

Platforms

mobile

Thank you for your feedback!

Was this page helpful?